package com.study.sbsummary.utils;

import org.apache.commons.lang3.StringUtils;
import org.assertj.core.util.Strings;

import java.util.Objects;

/**
 * @Description:
 * @Author: hushichao
 * @Date: 3/23/22
 */
public class AppVersionUtil {

    public static boolean getVersionFlag(Long platform, String apiVersion) {
        if (Objects.equals(platform, 0L)
                && (Strings.isNullOrEmpty(apiVersion) || StringUtils.equals("000000", apiVersion))) {
            return true;
        }
        return false;
    }

}
